}
readonly property int horizontalPaddingOffset: Style.trayHorizontalMargin
- readonly property color placeholderColor: palette.dark
readonly property double iconsScaleFactor: 0.6
function triggerSuggestionsVisibility() {
}
placeholderText: enabled ? qsTr("Search for users or groups…") : qsTr("Sharing is not available for this folder")
- placeholderTextColor: placeholderColor
verticalAlignment: Qt.AlignVCenter
implicitHeight: Math.max(Style.talkReplyTextFieldPreferredHeight, contentHeight)
fillMode: Image.PreserveAspectFit
horizontalAlignment: Image.AlignLeft
- source: "image://svgimage-custom-color/search.svg" + "/" + root.placeholderColor
+ source: "image://svgimage-custom-color/search.svg" + "/" + palette.placeholderText
sourceSize: Qt.size(parent.height * root.iconsScaleFactor, parent.height * root.iconsScaleFactor)
visible: !root.shareeModel.fetchOngoing
}
width: height
- color: root.placeholderColor
+ color: palette.placeholderText
visible: root.shareeModel.fetchOngoing
running: visible
}
mipmap: true
fillMode: Image.PreserveAspectFit
- source: "image://svgimage-custom-color/clear.svg" + "/" + root.placeholderColor
+ source: "image://svgimage-custom-color/clear.svg" + "/" + palette.placeholderText
sourceSize: Qt.size(parent.height * root.iconsScaleFactor, parent.height * root.iconsScaleFactor)
visible: root.text
verticalAlignment: Image.AlignVCenter
horizontalAlignment: Image.AlignHCenter
fillMode: Image.PreserveAspectFit
- source: "image://svgimage-custom-color/activity.svg/" + palette.dark
+ source: "image://svgimage-custom-color/activity.svg/" + palette.windowText
}
EnforcedPlainTextLabel {
property bool isSearchInProgress: false
- readonly property color textFieldIconsColor: palette.dark
- readonly property color placeholderColor: palette.dark
+ readonly property color textFieldIconsColor: palette.placeholderText
readonly property int iconInset: Style.smallSpacing
}
Image {
- source: "image://svgimage-custom-color/magnifying-glass.svg"
+ source: `image://svgimage-custom-color/magnifying-glass.svg/${palette.windowText}`
sourceSize.width: Style.trayWindowHeaderHeight / 2
sourceSize.height: Style.trayWindowHeaderHeight / 2
Layout.alignment: Qt.AlignHCenter
Image {
id: unifiedSearchResultsNoResultsLabelIcon
- source: "image://svgimage-custom-color/magnifying-glass.svg"
+ source: `image://svgimage-custom-color/magnifying-glass.svg/${palette.windowText}`
sourceSize.width: Style.trayWindowHeaderHeight / 2
sourceSize.height: Style.trayWindowHeaderHeight / 2
Layout.alignment: Qt.AlignHCenter
}
} else {
// We have an activity
- return a._icon.isEmpty() ? colorIconPath.arg("activity.svg") : colorIconPath.arg(a._icon);
+ if (a._icon.isEmpty()) {
+ return colorIconPath.arg("activity.svg");
+ }
+
+ // using tray-image-provider here as it can read from URLs
+ return QStringLiteral("image://tray-image-provider/%1").arg(a._icon);
}
};